package host.skiree.nettydemo.client.service.impl;

import host.skiree.nettydemo.client.service.MessageClientHandler;
import host.skiree.nettydemo.message.GroupJoinResponseMessage;
import host.skiree.nettydemo.message.Message;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author gcl
 * @date 2022/9/21 9:21
 */
public class GroupJoin implements MessageClientHandler {
    @Override
    public void handleMessage(ChannelHandlerContext ctx, Message message) {
        GroupJoinResponseMessage groupJoinResponseMessage = (GroupJoinResponseMessage) message;
        System.out.println(groupJoinResponseMessage.getReason());
    }
}
